cmake_minimum_required(VERSION 3.14)

project(MyQtProject)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)

find_package(Qt6 COMPONENTS Widgets REQUIRED)

add_executable(MyQtProject main.cpp)

target_link_libraries(MyQtProject PRIVATE Qt6::Widgets)
